<?php

use Illuminate\Database\Seeder;
use App\Models\Permission;

class PermissionsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Permission::create([
        	'identity' => 'admin',
        	'desc' => '管理员',
        	'uri' => 'all',
        	'methed' => 0
        ]);

        Permission::create([
        	'identity' => 'user.index',
        	'desc' => '拥有查看用户列表权限',
        	'uri' => 'api/User',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'user.store',
        	'desc' => '拥有新增用户权限',
        	'uri' => 'api/User',
        	'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'user.show',
        	'desc' => '拥有查看用户详情权限',
        	'uri' => 'api/User/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'user.put',
        	'desc' => '拥有修改用户权限',
        	'uri' => 'api/User/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'user.delete',
        	'desc' => '拥有删除用户权限',
        	'uri' => 'api/User/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'user.delete',
        	'desc' => '拥有删除用户权限',
        	'uri' => 'api/User/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'role.index',
        	'desc' => '拥有查看角色列表权限',
        	'uri' => 'api/Role',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'role.store',
        	'desc' => '拥有新增角色权限',
        	'uri' => 'api/Role',
        	'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'role.show',
        	'desc' => '拥有查看角色详情权限',
        	'uri' => 'api/Role/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'role.put',
        	'desc' => '拥有修改角色权限',
        	'uri' => 'api/Role/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'role.delete',
        	'desc' => '拥有删除角色权限',
        	'uri' => 'api/Role/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'permission.index',
        	'desc' => '拥有权限列表权限',
        	'uri' => 'api/Permission',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'permission.show',
        	'desc' => '拥有权限详情权限',
        	'uri' => 'api/Permission/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'permission.put',
        	'desc' => '拥有修改权限权限',
        	'uri' => 'api/Permission/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'deviceAlarmMessage.index',
        	'desc' => '拥有查看设备报警信息列表权限',
        	'uri' => 'api/DeviceAlarmMessage',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'deviceAlarmMessage.handlingSituation.index',
        	'desc' => '拥有查看设备报警信息列表权限',
        	'uri' => 'api/DeviceAlarmMessage/HandlingSituation',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'deviceConfig.index',
        	'desc' => '拥有查看设备配置信息列表权限',
        	'uri' => 'api/DeviceConfig',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'deviceConfig.show',
        	'desc' => '拥有查看设备配置信息详情权限',
        	'uri' => 'api/DeviceConfig',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'deviceConfig.put',
        	'desc' => '拥有修改设备配置信息权限',
        	'uri' => 'api/DeviceConfig/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'ic.index',
        	'desc' => '拥有查看IC卡信息列表权限',
        	'uri' => 'api/IC',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'ic.store',
        	'desc' => '拥有新增IC卡信息权限',
        	'uri' => 'api/IC',
        	'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'ic.show',
        	'desc' => '拥有查看IC卡信息详情权限',
        	'uri' => 'api/IC/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'ic.put',
        	'desc' => '拥有修改IC卡信息权限',
        	'uri' => 'api/IC/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'ic.delete',
        	'desc' => '拥有删除IC卡信息权限',
        	'uri' => 'api/IC/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'ic.processNode.index',
        	'desc' => '拥有查看IC卡节点信息列表权限',
        	'uri' => 'api/IC/ProcessNode',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'ic.icStatus.index',
        	'desc' => '拥有查看IC卡状态信息列表权限',
        	'uri' => 'api/IC/IcStatus',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'icRecord.index',
        	'desc' => '拥有查看制卡记录信息列表权限',
        	'uri' => 'api/IcRecord',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'icRecord.haveSfz.index',
        	'desc' => '拥有查看制卡记录是否拥有身份证列表权限',
        	'uri' => 'api/IcRecord/HaveSfz',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'icRecord.sfzinfoType.index',
        	'desc' => '拥有查看制卡记录身份证信息获取方式列表权限',
        	'uri' => 'api/IcRecord/SfzinfoType',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'internalVehicle.index',
        	'desc' => '拥有查看内部车辆信息列表权限',
        	'uri' => 'api/InternalVehicle',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'internalVehicle.store',
        	'desc' => '拥有新增内部车辆信息权限',
        	'uri' => 'api/InternalVehicle',
        	'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'internalVehicle.show',
        	'desc' => '拥有查看内部车辆信息详情权限',
        	'uri' => 'api/InternalVehicle/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'internalVehicle.put',
        	'desc' => '拥有修改内部车辆信息权限',
        	'uri' => 'api/InternalVehicle/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'internalVehicle.delete',
        	'desc' => '拥有删除内部车辆信息权限',
        	'uri' => 'api/InternalVehicle/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'loginHistory.index',
        	'desc' => '拥有查看登录记录列表权限',
        	'uri' => 'api/LoginHistory',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'settlementWeight.index',
        	'desc' => '拥有查看结算重量列表权限',
        	'uri' => 'api/SettlementWeight',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'settlementWeight.store',
        	'desc' => '拥有新增结算重量权限',
        	'uri' => 'api/SettlementWeight',
        	'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'settlementWeight.show',
        	'desc' => '拥有查看结算重量详情权限',
        	'uri' => 'api/SettlementWeight/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'settlementWeight.put',
        	'desc' => '拥有修改结算重量权限',
        	'uri' => 'api/SettlementWeight/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'settlementWeight.delete',
        	'desc' => '拥有删除结算重量权限',
        	'uri' => 'api/SettlementWeight/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'settlementWeight.weight.index',
        	'desc' => '拥有查看结算重量是否过磅列表权限',
        	'uri' => 'api/SettlementWeight/Weight',
        	'methed' => 1
        ]);

        Permission::create([
            'identity' => 'settlementWeight.export',
            'desc' => '拥有导出结算重量数据权限',
            'uri' => 'api/SettlementWeight/Export',
            'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'systemConfig.index',
        	'desc' => '拥有查看系统设置列表权限',
        	'uri' => 'api/SystemConfig',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'systemConfig.put',
        	'desc' => '拥有修改系统设置列表权限',
        	'uri' => 'api/SystemConfig/{id}',
        	'methed' => 3
        ]);

        Permission::create([
            'identity' => 'systemConfig.shipang',
            'desc' => '拥有试磅权限',
            'uri' => 'api/SystemConfig/ShiBang',
            'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'weighAbnormal.index',
        	'desc' => '拥有查询称重异常信息列表权限',
        	'uri' => 'api/WeighAbnormal',
        	'methed' => 1
        ]);

        Permission::create([
            'identity' => 'weighAbnormal.export',
            'desc' => '拥有导出称重异常信息列表权限',
            'uri' => 'api/WeighAbnormal/Export',
            'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.index',
        	'desc' => '拥有查询称重记录列表权限',
        	'uri' => 'api/Weightdata',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.show',
        	'desc' => '拥有查询称重记录详情权限',
        	'uri' => 'api/Weightdata/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.processNumber.index',
        	'desc' => '拥有查询称重记录业务流程类型列表权限',
        	'uri' => 'api/Weightdata/ProcessNumber',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.transType.index',
        	'desc' => '拥有查询称重记录单据类型列表权限',
        	'uri' => 'api/Weightdata/TransType',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.transStatus.index',
        	'desc' => '拥有查询称重记录单据状态列表权限',
        	'uri' => 'api/Weightdata/TransStatus',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.transStatus.index',
        	'desc' => '拥有查询称重记录是否完成列表权限',
        	'uri' => 'api/Weightdata/IsFinished',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'weightdata.weightStatus.index',
        	'desc' => '拥有查询称重记录称重状态列表权限',
        	'uri' => 'api/Weightdata/WeightStatus',
        	'methed' => 1
        ]);

        Permission::create([
            'identity' => 'weightdata.export',
            'desc' => '拥有导出称重记录数据权限',
            'uri' => 'api/Weightdata/Export',
            'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'account.index',
        	'desc' => '拥有查询账户信息列表权限',
        	'uri' => 'api/Account',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'account.store',
        	'desc' => '拥有新增账户信息权限',
        	'uri' => 'api/Account',
        	'methed' => 2
        ]);

        Permission::create([
        	'identity' => 'account.show',
        	'desc' => '拥有查询账户信息详情权限',
        	'uri' => 'api/Account/{id}',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'account.put',
        	'desc' => '拥有修改账户信息权限',
        	'uri' => 'api/Account/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'account.delete',
        	'desc' => '拥有删除账户信息权限',
        	'uri' => 'api/Account/{id}',
        	'methed' => 4
        ]);

        Permission::create([
        	'identity' => 'snapAbnormal.index',
        	'desc' => '拥有查询抓拍异常列表权限',
        	'uri' => 'api/SnapAbnormal',
        	'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'snapAbnormal.put',
        	'desc' => '拥有修改抓拍异常权限',
        	'uri' => 'api/SnapAbnormal/{id}',
        	'methed' => 3
        ]);

        Permission::create([
        	'identity' => 'snapAbnormal.handlingSituation.index',
        	'desc' => '拥有查询抓拍异常处理情况列表权限',
        	'uri' => 'api/SnapAbnormal/HandlingSituation',
        	'methed' => 1
        ]);

        Permission::create([
            'identity' => 'snapAbnormal.export',
            'desc' => '拥有导出抓拍异常数据权限',
            'uri' => 'api/SnapAbnormal/Export',
            'methed' => 1
        ]);

        Permission::create([
        	'identity' => 'systemAbnormal.index',
        	'desc' => '拥有查询系统异常信息列表权限',
        	'uri' => 'api/SystemAbnormal',
        	'methed' => 1
        ]);

        Permission::create([
            'identity' => 'flowExtemal.index',
            'desc' => '拥有查询流程记录（外部车辆）列表权限',
            'uri' => 'api/flow/FlowExtemal',
            'methed' => 1
        ]);

        Permission::create([
            'identity' => 'flowExtemal.purchase_weight.put',
            'desc' => '拥有修改流程记录（外部车辆）采购重量权限',
            'uri' => 'api/flow/purchase_weight/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.discharge_weight.put',
            'desc' => '拥有修改流程记录（外部车辆）卸货重量权限',
            'uri' => 'api/flow/discharge_weight/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.pick_weight.put',
            'desc' => '拥有修改流程记录（外部车辆）提货重量权限',
            'uri' => 'api/flow/pick_weight/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.out_weight.put',
            'desc' => '拥有修改流程记录（外部车辆）出门重量权限',
            'uri' => 'api/flow/out_weight/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.is_return.put',
            'desc' => '拥有修改流程记录（外部车辆）是否退货权限',
            'uri' => 'api/flow/is_return/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.is_go.put',
            'desc' => '拥有修改流程记录（外部车辆）是否可以出门权限',
            'uri' => 'api/flow/is_go/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.remark.put',
            'desc' => '拥有修改流程记录（外部车辆）异常备案权限',
            'uri' => 'api/flow/remark/{id}',
            'methed' => 3
        ]);

        Permission::create([
            'identity' => 'flowExtemal.is_return.index',
            'desc' => '拥有查询流程记录（外部车辆）是否退货列表权限',
            'uri' => 'api/flow/is_return',
            'methed' => 1
        ]);

        Permission::create([
            'identity' => 'flowExtemal.is_go.index',
            'desc' => '拥有查询流程记录（外部车辆）是否可以出门列表权限',
            'uri' => 'api/flow/is_go',
            'methed' => 1
        ]);
    }
}
